<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
	<script type="text/javascript" src="/deng/include/include-css.js"></script>
	<script type="text/javascript" src="/deng/include/inplug-css.js"></script>
	<link href="/deng/source/css/bootlist.css" rel="stylesheet" type="text/css" />
	<title>功能配置管理</title>
	<style>
		/* dataTables表头居中 */
		.table>thead:first-child>tr:first-child>th{
			text-align:left;
			background-color: #f5f5f5;
			font-weight:normal;
		}
		.table>thead:first-child>tr:first-child>th p{
			text-align:left;
			font-weight:normal;
		}
		.table>tbody>tr>td {
			text-align:left;
		}
		.fixed-table-container .bs-checkbox {
			text-align:left;
		}
	</style>
</head>
<body>
	<div class="m-content jehc-content-1">
		<div class="m-portlet">
			<div class="m-portlet__head">
				<div class="m-portlet__head-caption">
					<div class="m-portlet__head-title">
						<h3 class="m-portlet__head-text">
							<span class="m-accordion__item-icon"><i class="flaticon-search"></i>功能配置</span>
						</h3>
					</div>
				</div>
			</div>
			<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" method="POST" id="searchForm">
				<div class="m-portlet__foot m-portlet__no-border m-portlet__foot--fit">
					<div class="m-form__actions m-form__actions--solid">
						<div class="row">
							<div class="col m--align-left">
								<div class="form-group m-form__group row">
									<label class="col-form-label">隶属平台:</label>
									<div class="col-lg-3">
										<select class="form-control" id="sysmode_id" placeholder="请选择" onchange="doThisEvent(this)">
											<option value="">请选择</option>
										</select>
									</div>
									<label class="col-form-label">隶属模块:</label>
									<div class="col-lg-3">
										<select class="form-control" id="resources_module_id" placeholder="请选择">
											<option value="">请选择</option>
										</select>
									</div>
									<input id="expandTreeState" type="hidden" value="0">
									<a class="btn btn-light-primary font-weight-bold mr-2 m-btn m-btn--custom m-btn--label-info m-btn--bolder" href="javascript:addXtFunctioninfo()">
										<i class="la la-plus la-lg"></i>添加功能
									</a>
								</div>
							</div>
							<div class="col m--align-right">

								<a class="btn btn-secondary m-btn m-btn--custom m-btn--label-primary" href="javascript:collapseTree()">
									<span><i class="la la-angle-right"></i><span>全部折叠</span></span>
								</a>
								<a class="btn btn-secondary m-btn m-btn--custom m-btn--label-success" href="javascript:expandTree()">
									<span><i class="la la-angle-down"></i><span>全部展开</span></span>
								</a>
								<a class="btn btn-light-warning font-weight-bold mr-2 m-btn m-btn--custom m-btn--icon" href="javascript:initTreeTable()">
									<span><i class="fa fa-spin fa-refresh m-r-5"></i><span>刷 新</span></span>
								</a>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</div>
	<table id="table"></table>
	<!-- 功能模态框（Modal）开始 -->
	<div class="modal fade" id="addXtFunctioninfoModal" tabindex="-1" role="dialog" aria-labelledby="addXtFunctioninfoModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg modal-dialog-centered">
			<div class="modal-content">
				<div class="m-portlet">
				<div class="modal-header">
					<h4 class="modal-title" id="addXtFunctioninfoModalLabel">
						新增功能配置
					</h4>
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				</div>
				<div class="modal-body" style='height:calc(100vh - 220px);overflow: auto;'>
					<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" method="POST" id="addXtFunctioninfoForm">
						<div class="m-portlet__body">
							<div class="form-group m-form__group row">
								<label class="col-lg-2 col-form-label" jEhcLang="resources_title">隶属模块</label>
								<div class="col-lg-6">
									<div class="form-group input-group">
										<input class="form-control" type="hidden" data-bv-notempty data-bv-notempty-message="请选择模块" placeholder="请选择模块" name="menu_id" id="menu_id_"/>
										<input class="form-control" type="hidden" name="function_info_id" id="function_info_id"/>
										<input class="form-control" type="text" readonly="readonly" data-bv-notempty data-bv-notempty-message="请选择模块" placeholder="请选择模块" id="resources_title"/>
										<span class="input-group-btn">
											<button class="btn btn-default" type="button" onclick="xtMenuinfoSelect(1)">
												选择模块
											</button>
										</span>
									</div>
								</div>
							</div>
							<div class="form-group m-form__group row">
								<label class="col-lg-2 col-form-label" jEhcLang="function_info_name">功能名称</label>
								<div class="col-lg-4">
									<input class="form-control placeholder-no-fix" type="text" data-bv-notempty data-bv-notempty-message="请输入功能名称" placeholder="请输入功能名称" name="function_info_name" id="function_info_name"/>
								</div>
							</div>
							<div class="form-group m-form__group row">
								<label class="col-lg-2 col-form-label" jEhcLang="function_info_url">访问地址</label>
								<div class="col-lg-8">
									<input class="form-control" type="text" data-bv-notempty data-bv-notempty-message="请输入url" placeholder="请输入url" name="function_info_url" id="function_info_url"/>
								</div>
							</div>
							<div class="form-group m-form__group row">
								<label class="col-lg-2 col-form-label" jEhcLang="function_info_method">按钮方法</label>
								<div class="col-lg-8">
									<input class="form-control" type="text" data-bv-notempty data-bv-notempty-message="请输入页面按钮方法" placeholder="请输入页面按钮方法" name="function_info_method" id="function_info_method"/>
								</div>
							</div>
							<div class="form-group m-form__group row">
								<label class="col-lg-2 col-form-label" jEhcLang="isfilter">是否拦截</label>
								<div class="col-lg-4">
									<select class="form-control" data-bv-notempty data-bv-notempty-message="请选择是否拦截" placeholder="请选择是否拦截" name="isfilter" id="isfilter">
										<option value="">请选择</option>
										<option value="0">否</option>
										<option value="1">是</option>
									</select>
								</div>
								<label class="col-lg-2 col-form-label" jEhcLang="isAuthority">数据权限</label>
								<div class="col-lg-4">
									<select class="form-control" data-bv-notempty data-bv-notempty-message="请选择是否参与数据权限" placeholder="请选择是否参与数据权限" name="isAuthority" id="isAuthority">
										<option value="">请选择</option>
										<option value="0">是</option>
										<option value="1">否</option>
									</select>
								</div>
							</div>
							<div class="form-group m-form__group row">
								<label class="col-lg-2 col-form-label" jEhcLang="status">是否可用</label>
								<div class="col-lg-4">
									<select class="form-control" data-bv-notempty data-bv-notempty-message="请选择" placeholder="请选择" name="status" id="status">
										<option value="0">是</option>
										<option value="1">否</option>
									</select>
								</div>
							</div>
						</div>
					</form>
				</div>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-light-danger m-btn m-btn--custom m-btn--icon" data-dismiss="modal">取 消</button>
					<button type="button" class="btn btn-light-primary m-btn m-btn--custom m-btn--icon" onclick="doAddXtFunctioninfo()">保 存</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<!-- 功能模态框（Modal）结束 -->


	<!-- 详情功能模态框（Modal）开始 -->
	<div class="modal fade" id="detailXtFunctioninfoModal" tabindex="-1" role="dialog" aria-labelledby="detailXtFunctioninfoModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg modal-dialog-centered">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="detailXtFunctioninfoModalLabel">
						功能配置详情
					</h4>
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				</div>
				<div class="modal-body" style='height:calc(100vh - 220px);overflow: auto;'>
					<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" id="detailXtFunctioninfoForm" method="post">
						<div class="form-group m-form__group row">
							<label class="col-lg-2 col-form-label" jEhcLang="resources_title">隶属模块</label>
							<div class="col-lg-4">
								<div class="form-group">
									<input class="form-control" type="hidden" data-bv-notempty data-bv-notempty-message="请选择模块" placeholder="请选择模块" name="menu_id" id="menu_id_"/>
									<input class="form-control" type="hidden" name="function_info_id" id="function_info_id"/>
									<input class="form-control" type="text" data-bv-notempty data-bv-notempty-message="请选择模块" placeholder="请选择模块" id="resources_title"/>
								</div>
							</div>
						</div>
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="function_info_name">功能名称</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="text" data-bv-notempty data-bv-notempty-message="请输入功能名称" placeholder="请输入功能名称" name="function_info_name" id="function_info_name"/>
								</div>
							</div>
						</div>
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="function_info_url">访问地址</label>
							</div>
							<div class="col-md-10">
								<div class="form-group">
									<input class="form-control" type="text" data-bv-notempty data-bv-notempty-message="请输入url" placeholder="请输入url" name="function_info_url" id="function_info_url"/>
								</div>
							</div>
						</div>
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="function_info_method">按钮方法</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control" type="text" data-bv-notempty data-bv-notempty-message="请输入" placeholder="请输入" name="function_info_method" id="function_info_method"/>
								</div>
							</div>
						</div>
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="isfilter">是否拦截</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" data-bv-notempty data-bv-notempty-message="请选择" placeholder="请选择" name="isfilter" id="isfilter">
										<option value="">请选择</option>
										<option value="0">否</option>
										<option value="1">是</option>
									</select>
								</div>
							</div>
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="isAuthority">数据权限</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" data-bv-notempty data-bv-notempty-message="请选择" placeholder="请选择" name="isAuthority" id="isAuthority">
										<option value="">请选择</option>
										<option value="0">是</option>
										<option value="1">否</option>
									</select>
								</div>
							</div>
						</div>
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="status">是否可用</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" data-bv-notempty data-bv-notempty-message="请选择" placeholder="请选择" name="status" id="status">
										<option value="0">是</option>
										<option value="1">否</option>
									</select>
								</div>
							</div>
						</div>
					</form>
				</div>
				<!--<div class="modal-footer">
					<button type="button" class="btn btn-secondary m-btn m-btn&#45;&#45;custom m-btn&#45;&#45;icon" data-dismiss="modal">关闭</button>
				</div>-->
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<!-- 详情功能模态框（Modal）结束 -->

	<!-- 编辑功能模态框（Modal）开始 -->
	<div class="modal fade" id="updateXtFunctioninfoModal" tabindex="-1" role="dialog" aria-labelledby="updateXtFunctioninfoModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-lg modal-dialog-centered">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="updateXtFunctioninfoModalLabel">
						编辑功能配置
					</h4>
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				</div>
				<div class="modal-body" style='height:calc(100vh - 220px);overflow: auto;'>
					<form class="m-form m-form--fit m-form--label-align-left m-form--group-seperator-dashed" id="updateXtFunctioninfoForm" method="post">
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="resources_title">隶属模块</label>
							</div>
							<div class="col-md-4">
								<div class="form-group input-group">
									<input class="form-control" type="hidden" data-bv-notempty data-bv-notempty-message="请选择" placeholder="请选择" name="menu_id" id="menu_id_"/>
									<input class="form-control" type="hidden" name="function_info_id" id="function_info_id"/>
									<input class="form-control" type="text" readonly="readonly" data-bv-notempty data-bv-notempty-message="请选择" placeholder="请选择" id="resources_title"/>
									<span class="input-group-btn">
										<button class="btn btn-default" type="button" onclick="xtMenuinfoSelect(2)">
											选择模块
										</button>
									</span>
								</div>
							</div>
						</div>
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="function_info_name">功能名称</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control placeholder-no-fix" type="text" data-bv-notempty data-bv-notempty-message="请输入" placeholder="请输入" name="function_info_name" id="function_info_name"/>
								</div>
							</div>
						</div>
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="function_info_url">访问地址</label>
							</div>
							<div class="col-md-10">
								<div class="form-group">
									<input class="form-control" type="text" data-bv-notempty data-bv-notempty-message="请输入url" placeholder="请输入url" name="function_info_url" id="function_info_url"/>
								</div>
							</div>
						</div>
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="function_info_method">按钮方法</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<input class="form-control" type="text" data-bv-notempty data-bv-notempty-message="请输入" placeholder="请输入" name="function_info_method" id="function_info_method"/>
								</div>
							</div>
						</div>
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="isfilter">是否拦截</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" data-bv-notempty data-bv-notempty-message="请选择" placeholder="请选择" name="isfilter" id="isfilter">
										<option value="">请选择</option>
										<option value="0">否</option>
										<option value="1">是</option>
									</select>
								</div>
							</div>
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="isAuthority">数据权限</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" data-bv-notempty data-bv-notempty-message="请选择是否" placeholder="请选择是" name="isAuthority" id="isAuthority">
										<option value="">请选择</option>
										<option value="0">是</option>
										<option value="1">否</option>
									</select>
								</div>
							</div>
						</div>
						<div class="form-group m-form__group row">
							<div class="col-md-2">
								<label class="col-form-label" jEhcLang="status">是否可用</label>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select class="form-control" data-bv-notempty data-bv-notempty-message="请选择" placeholder="请选择" name="status" id="status">
										<option value="0">是</option>
										<option value="1">否</option>
									</select>
								</div>
							</div>
						</div>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-light-danger m-btn m-btn--custom m-btn--icon" data-dismiss="modal">取 消</button>
					<button type="button" class="btn btn-light-primary m-btn m-btn--custom m-btn--icon" onclick="doUpdateXtFunctioninfo()">保存</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<!-- 编辑功能模态框（Modal）结束 -->

	<!-- 模块选择器模态框（Modal）开始 -->
	<div class="modal fade" id="xtMenuinfoSelectModal" tabindex="-1" role="dialog" aria-labelledby="xtMenuinfoSelectModalLabel" aria-hidden="true">
		<div class="modal-dialog modal-dialog-centered" id="xtMenuinfoSelectDialog">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="xtMenuinfoSelectModalLabel">
						模块选择器
					</h4>
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
				</div>
				<div class="modal-body" id="xtMenuinfoBody" style="overflow:auto; ">
					<div class="form-group m-form__group row">
						<label class="col-form-label">隶属平台:</label>
						<div class="col-lg-5">
							<select class="form-control" id="sysmode_id_" placeholder="请选择" onchange="doSysModeEvent(this)">
								<option value="">请选择</option>
							</select>
						</div>
					</div>
					<div class="form-group m-form__group row">
						<ul id="menu" class="ztree" style="width: 100%;height: 100%;margin-left: 5px;">暂无数据</ul>
						<input class="form-control" type="hidden" name="flag" id="flag"/>
					</div>
				</div>
				<div class="modal-footer">
					<!--<button type="button" class="btn btn-light-danger m-btn m-btn&#45;&#45;custom m-btn&#45;&#45;icon" data-dismiss="modal">关闭</button>-->
					<button type="button" class="btn btn-light-primary m-btn m-btn--custom m-btn--icon" onclick="doXtMenuinfoSelect()">保存</button>
				</div>
			</div><!-- /.modal-content -->
		</div><!-- /.modal -->
	</div>
	<!-- 模块选择器模态框（Modal）结束 -->
</body>
<script type="text/javascript" src="/deng/include/include.js"></script>
<script type="text/javascript" src="/deng/include/inplug.js"></script>

<script type="text/javascript" src="/deng/view/oauth/oauth-function-info/oauth-function-info-list.js"></script>
<script type="text/javascript" src="/deng/view/oauth/oauth-function-info/oauth-function-info-add.js"></script>
<script type="text/javascript" src="/deng/view/oauth/oauth-function-info/oauth-function-info-update.js"></script>
<script type="text/javascript" src="/deng/view/oauth/oauth-function-info/oauth-function-info-detail.js"></script>

<link href="/deng/source/plugins/other/bootstrap-table-treegrid/version_/assets/bootstrap-table.css" rel="stylesheet">
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/version_/assets/bootstrap-table.js"></script>
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/js/bootstrap-table-zh-CN.js"></script>
<script type="text/javascript" src="/deng/source/plugins/other/bootstrap-table-treegrid/version_/src/bootstraptable-treeview.js"></script>
<style type="text/css">
	/* dataTables表头居中 */
	.table>thead:first-child>tr:first-child>th{
		text-align:left;
		background-color: #007bff;
		font-weight:normal;
	}
	.table>thead:first-child>tr:first-child>th p{
		text-align:left;
		font-weight:normal;
	}
	.table>tbody>tr>td {
		text-align:left;
	}
	.fixed-table-container .bs-checkbox {
		text-align:left;
	}
	.bootstrap-table .table > thead > tr > th {
		border-bottom: 1px solid #ebedf2;
	}
	.table>thead:first-child>tr:first-child>th {
		background-color: #fff;
	}
	.bootstrap-table .table {
		margin-bottom: 0 !important;
		border-bottom: 1px solid #ebedf2;
		border-collapse: collapse !important;
		border-radius: 1px;
	}
	.table-striped tbody tr:nth-of-type(odd) {
		background-color: #fff;
	}
	.fixed-table-container tbody td {
		border-left: 1px solid #ebedf2;
	}
</style>
</html>
